package com.ruoyi.common.enums;

/**
 * 任务状态
 * 
 * @author yanghao
 */
public enum TaskStatus {
	/**
	 * 等待创建 创建中 creating 创建失败 创建成功 任务结束
	 */

	WAITING_CREATING("0", "等待创建任务"), CREATING("1", "创建任务中"), CREATING_FAILING("2", "创建失败"),
	CREATING_SUCCESS("3", "创建成功"), ENDING("4", "任务结束"), WAITING_DELETING("5", "等待任务删除"), DELETING("6", "任务删除中"),
	DELETING_FAILING("7", "删除任务失败");

	private final String code;
	private final String info;

	TaskStatus(String code, String info) {
		this.code = code;
		this.info = info;
	}

	public String getCode() {
		return code;
	}

	public String getInfo() {
		return info;
	}
}
